﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using WPFLOBMVVM.View;
using WPFLOBMVVM.ViewModel;

namespace WPFLOBMVVMC
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

       

        private void Application_Startup(object sender, System.Windows.StartupEventArgs e)
        {

            ApplicationMainWindow objView = new ApplicationMainWindow();
            ApplicationMainWindowViewModel objViewModel = new ApplicationMainWindowViewModel();
            objViewModel.RequestClose += objView.RequestClose;
            objView.DataContext = objViewModel;
            objView.Show();
        }

    }
}
